//
//  4-8.cpp
//  mm
//
//  Created by  AbbyCin on 12/16/14.
//  Copyright (c) 2014  AbbyCin. All rights reserved.
//

#include <iostream>
#include <string>

using namespace std;

struct rec{
    string company;
    float diameter;
    float weight;
};

int main()
{
    rec *pizza = new rec;
    cout << "enter company name: " ; getline(cin, pizza->company);
    cout << "\nenter pizza's diameter: ";cin >> pizza->diameter;
    cout << "\nenter pizza's weight: "; cin >> pizza->weight;
    
    cout << "company name: " << pizza->company;
    cout << "\npizza's diameter: " << pizza->diameter;
    cout << "\npizza's weight: " << pizza->weight << endl;
    
    delete pizza;
    
    return 0;
}

